home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-23 | 4.2 KB | 193 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLFileAc.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- *
- * File: SLFileAc.idl
- * Release Version: $ ODF 1 $
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- *
- */
-
-
- #ifndef SOM_FW_OFileSink_xh
- #define SOM_FW_OFileSink_xh
-
- class FW_OFileSink;
-
- #define FW_OFileSink_MajorVersion 1
- #define FW_OFileSink_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_ORandomAccessSink_xh
- #include <SLRanSin.xh>
- #endif
-
- #ifndef FW_OFileSink_API
- #define FW_OFileSink_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class FW_OSink;
- class FW_ORandomAccessSink;
- class FW_ORefCount;
- class FW_OFileSpecification;
- class FW_ODirectorySpecification;
- class FW_OFile;
- class FW_OFileSink;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OFileSinkCClassData FW_OFileSinkClassData
- #define FW_OFileSinkNewClass(major,minor) somNewVersionedClassReference(FW_OFileSink,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OFileSinkMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OFileSink class object, and the methods it introduces. */
- SOMEXTERN struct FW_OFileSinkClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitFromOFile;
- somMToken GetOFileRep;
- } SOMDLINK FW_OFileSinkClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OFileSink_Class_Source) && !defined(SOM_Module_slfileac_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OFileSinkClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OFileSink Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_FW_OFileSink_InitFromOFile)(FW_OFileSink *somSelf, Environment *ev,
- FW_OFile* theFile);
- typedef FW_OFile* (* SOMLINK somTD_FW_OFileSink_GetOFileRep)(FW_OFileSink *somSelf, Environment *ev);
- }
-
- #endif /* FW_OFileSink_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for FW_OFileSink
- */
- class FW_OFileSink : public FW_ORandomAccessSink
- {
- public:
-
- // FW_OFileSink::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OFileSink, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OFileSink);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OFileSink);
- #endif
- }
-
- // FW_OFileSink::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitFromOFile */
- void InitFromOFile(Environment *ev,
- FW_OFile* theFile)
- {
- SOM_ResolveD(this,FW_OFileSink,FW_OFileSink,InitFromOFile)
- (this,ev,theFile);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetOFileRep */
- FW_OFile* GetOFileRep(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_OFile* __somResult =
- SOM_ResolveD(this,FW_OFileSink,FW_OFileSink,GetOFileRep)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OFileSink,FW_OFileSink,GetOFileRep)
- (this,ev);
- #endif
- }
-
- }; /* FW_OFileSink */
-
-
-
- #endif /* SOM_FW_OFileSink_xh */
-